package common
{
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;

    [Bindable]
    public class Model
    {
        public var data:ArrayCollection;
        public var state:Boolean;

        public function Model()
        {
            this.data = new ArrayCollection();
            this.state = false;
        }

        public function update(newData:Array):void
        {
            this.data.source = newData;
            this.state = true;
        }
    }
}
